import Vue from 'vue'
import App from './App.vue'
import router from './router/index.js'
import './plugins/element.js'
// 导入全局样式表
import './assets/css/global.css'
// axios 请求
import axios from 'axios'
// MD5
import md5 from 'js-md5'
Vue.prototype.$md5 = md5

import echarts from 'echarts'
Vue.prototype.$echarts = echarts
// 本机环境
axios.defaults.baseURL = 'http://localhost:8899/family'
// 请求头处理
axios.interceptors.request.use(config => {
  config.headers.Authentication = window.sessionStorage.getItem('token')
  return config
})
Vue.prototype.$http = axios
Vue.config.productionTip = false
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
